package org.jeecg.modules.service.printapply.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.bean.entity.printapply.TbPrintApply;
import org.jeecg.modules.mapper.printapply.TbPrintApplyMapper;
import org.jeecg.modules.service.printapply.ITbPrintApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 病历复印申请表
 * @Author: jeecg-boot
 * @Date:   2023-11-29
 * @Version: V1.0
 */
@Service
public class TbPrintApplyServiceImpl extends ServiceImpl<TbPrintApplyMapper, TbPrintApply> implements ITbPrintApplyService {

    @Autowired
    private TbPrintApplyMapper applyMapper;
    @Override
    public void updateStatusById(TbPrintApply printApply) {
        applyMapper.updateStatusById(printApply);
    }

    @Override
    public IPage<TbPrintApply> getApplyListInfo(Page<TbPrintApply> page, TbPrintApply printApply,String startTime,String endTime) {
        IPage<TbPrintApply> applyPage = applyMapper.getApplyListByItems(page, printApply,startTime,endTime);
        return applyPage;
    }
}
